package com.thinkgem.jeesite.modules.book.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;
import com.thinkgem.jeesite.modules.shelf.entity.BkShelf;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

/**
 * 书籍编目
 * Created by aulbrother on 2015/11/25.
 */
public class BkBookstore extends DataEntity<BkBookstore>{
    private String banid;
    private String bkId;
    private String bookname;
    private String isbn;
    private String classcode;
    private String className;
    private String author;
    private String publisher;
    private String pubdate;
    private String place;
    private String price;
    private BkShelf shelf;
    private String shelfid;
    // 单册价格
    private String pPrice;
    // 整套价格
    private String tPrice;
    // 采访价格
    private String realPrice;
    // 复本数
    private int amount;
    // 卷册数量
    private int booksAmount;
    // 币种
    private String moneyType;
    // 采访币种
    private String pMoneyType;
    // 批次编号
    private Integer pbdId;
    //副题名
    private String othername;
    //丛编
    private String books;
    //分册号
    private String booksnum;
    private String media;
    private String source;
    private String binding;
    private String store;
    private String storeName;
    private Integer status;
    private Integer state = 1;
    private BigDecimal zjMny;
    private Timestamp iptTme;
    private String msg;
    private String oth;
    private String userId;
    private Timestamp delTime;
    private Integer delRsn;
    private String batch;
    private String shareGcd;
    private Integer dcglId;
    private Integer totalCount;
    private Integer leftCount;
    private String version;//版次
    private Date beginDate;		// 开始日期
    private Date endDate;		// 结束日期

    public BkBookstore(){
        super();
    }

    public BkBookstore(String bkId){
        this.bkId = bkId;
    }

    public BkBookstore(BkBookinfo bookinfo){
        this.bkId = bookinfo.getId();
        this.bookname = bookinfo.getBookname();
        this.othername = bookinfo.getOthername();
        this.isbn = bookinfo.getIsbn();
        this.classcode = bookinfo.getClasscode();
        this.className = bookinfo.getClassName();
        this.author = bookinfo.getAuthor();
        this.publisher = bookinfo.getPublisher();
        this.pubdate = bookinfo.getPubdate();
        this.place = bookinfo.getPubplace();
        this.price = bookinfo.getPrice();
        this.realPrice = bookinfo.getPrice();
        this.version = bookinfo.getVersion();
    }

    public String getBkNumber(){
        return this.classcode + "/" + this.place;
    }

    @ExcelField(title = "ISBN", type = 0, align = 2, sort = 1)
    public String getIsbn(){
        return isbn;
    }
    @ExcelField(title = "题名", type = 0, align = 2, sort = 2)
    public String getBookname(){
        return bookname;
    }
    @ExcelField(title = "著者", type = 0, align = 2, sort = 3)
    public String getAuthor(){
        return author;
    }
    @ExcelField(title = "出版社", type = 0, align = 2, sort = 4)
    public String getPublisher(){
        return publisher;
    }
    @ExcelField(title = "定价", type = 0, align = 2, sort = 5)
    public String getPrice(){
        return price;
    }
    @ExcelField(title = "数量", type = 0, align = 2, sort = 6)
    public Integer getTotalCount(){
        return totalCount;
    }

    public String getBanid(){
        return banid;
    }

    public void setBanid(String banid){
        this.banid = banid;
    }

    public String getBkId(){
        return bkId;
    }

    public void setBkId(String bkId){
        this.bkId = bkId;
    }

    public void setBookname(String bookname){
        this.bookname = bookname;
    }

    public void setIsbn(String isbn){
        this.isbn = isbn;
    }

    public String getClasscode(){
        return classcode;
    }

    public void setClasscode(String classcode){
        this.classcode = classcode;
    }

    public String getClassName(){
        return className;
    }

    public void setClassName(String className){
        this.className = className;
    }

    public void setAuthor(String author){
        this.author = author;
    }

    public void setPublisher(String publisher){
        this.publisher = publisher;
    }

    public String getPubdate(){
        return pubdate;
    }

    public void setPubdate(String pubdate){
        this.pubdate = pubdate;
    }

    public String getPlace(){
        return place;
    }

    public void setPlace(String place){
        this.place = place;
    }

    public void setPrice(String price){
        this.price = price;
    }

    public String getpPrice(){
        return pPrice;
    }

    public void setpPrice(String pPrice){
        this.pPrice = pPrice;
    }

    public String gettPrice(){
        return tPrice;
    }

    public void settPrice(String tPrice){
        this.tPrice = tPrice;
    }

    public String getRealPrice(){
        return realPrice;
    }

    public void setRealPrice(String realPrice){
        this.realPrice = realPrice;
    }

    public int getAmount(){
        return amount;
    }

    public void setAmount(int amount){
        this.amount = amount;
    }

    public int getBooksAmount(){
        return booksAmount;
    }

    public void setBooksAmount(int booksAmount){
        this.booksAmount = booksAmount;
    }

    public String getMoneyType(){
        return moneyType;
    }

    public void setMoneyType(String moneyType){
        this.moneyType = moneyType;
    }

    public String getpMoneyType(){
        return pMoneyType;
    }

    public void setpMoneyType(String pMoneyType){
        this.pMoneyType = pMoneyType;
    }

    public Integer getPbdId(){
        return pbdId;
    }

    public void setPbdId(Integer pbdId){
        this.pbdId = pbdId;
    }

    public String getMedia(){
        return media;
    }

    public void setMedia(String media){
        this.media = media;
    }

    public String getSource(){
        return source;
    }

    public void setSource(String source){
        this.source = source;
    }

    public String getBinding(){
        return binding;
    }

    public void setBinding(String binding){
        this.binding = binding;
    }

    public String getStore(){
        return store;
    }

    public void setStore(String store){
        this.store = store;
    }

    public Integer getStatus(){
        return status;
    }

    public void setStatus(Integer status){
        this.status = status;
    }

    public Integer getState(){
        return state;
    }

    public void setState(Integer state){
        this.state = state;
    }

    public BigDecimal getZjMny(){
        return zjMny;
    }

    public void setZjMny(BigDecimal zjMny){
        this.zjMny = zjMny;
    }

    public Timestamp getIptTme(){
        return iptTme;
    }

    public void setIptTme(Timestamp iptTme){
        this.iptTme = iptTme;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }

    public String getOth(){
        return oth;
    }

    public void setOth(String oth){
        this.oth = oth;
    }

    public String getUserId(){
        return userId;
    }

    public void setUserId(String userId){
        this.userId = userId;
    }

    public Timestamp getDelTime(){
        return delTime;
    }

    public void setDelTime(Timestamp delTime){
        this.delTime = delTime;
    }

    public Integer getDelRsn(){
        return delRsn;
    }

    public void setDelRsn(Integer delRsn){
        this.delRsn = delRsn;
    }

    public String getBatch(){
        return batch;
    }

    public void setBatch(String batch){
        this.batch = batch;
    }

    public String getShareGcd(){
        return shareGcd;
    }

    public void setShareGcd(String shareGcd){
        this.shareGcd = shareGcd;
    }

    public Integer getDcglId(){
        return dcglId;
    }

    public void setDcglId(Integer dcglId){
        this.dcglId = dcglId;
    }

    public void setTotalCount(Integer totalCount){
        this.totalCount = totalCount;
    }

    public Integer getLeftCount(){
        return leftCount;
    }

    public void setLeftCount(Integer leftCount){
        this.leftCount = leftCount;
    }

    public String getStoreName(){
        return storeName;
    }

    public void setStoreName(String storeName){
        this.storeName = storeName;
    }

    public String getOthername() {
        return othername;
    }

    public void setOthername(String othername) {
        this.othername = othername;
    }

    public String getBooks() {
        return books;
    }

    public void setBooks(String books) {
        this.books = books;
    }

    public String getBooksnum() {
        return booksnum;
    }

    public void setBooksnum(String booksnum) {
        this.booksnum = booksnum;
    }

    public BkShelf getShelf(){
        return shelf;
    }

    public void setShelf(BkShelf shelf){
        this.shelf = shelf;
    }

    public Date getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        this.endDate = endDate;
    }

    public Date getBeginDate() {
        return beginDate;
    }

    public void setBeginDate(Date beginDate) {
        this.beginDate = beginDate;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getShelfid() {
        return shelfid;
    }

    public void setShelfid(String shelfid) {
        this.shelfid = shelfid;
    }
}
